<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    <%
	String path=request.getContextPath();
 	String basePaht=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
 %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>导航树</title>
<style type="text/css">
body {
	margin-left: 9px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
</style>
<SCRIPT language=javascript>
	function expand(el)
	{
		childObj = document.getElementById("child" + el);

		if (childObj.style.display == 'none')
		{
			childObj.style.display = 'block';
		}
		else
		{
			childObj.style.display = 'none';
		}
		return;
	}
</SCRIPT>
</head>
<body style="overflow:hidden">
 <table width="177" height="100%" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed">
   <tr>
     <td valign="top">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
       <tr>
         <td height="26" background="${pageContext.servletContext.contextPath}/images/main_21.gif">&nbsp;</td>  
      </tr>
      <tr>
        <td style="background-image:url(${pageContext.servletContext.contextPath}/images/main_47.gif); background-repeat:repeat-x;">
        <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
		<TR>
			<TD vAlign=top align=middle>
				 <c:forEach items="${resources}" var="key" varStatus="stut">
					<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
					 <c:if test="${key.text eq '0'}">
						<TR height=22>
							<TD style="PADDING-LEFT: 30px"
								background="${pageContext.servletContext.contextPath }/images/main_47.gif">
								<span class=menuParent onclick='expand("${stut.index}")'><font>${key.resourceName}</font>
								</span>
							</TD>
						</TR>
							</c:if>
					</TABLE>
					<TABLE id='child${stut.index}' style="DISPLAY: none" cellSpacing=0cellPadding=0 width="100%" border=0>
					<c:forEach items="${key.parent}" var="b">
					<TR height=20>
						<TD align=middle width=30>
							<IMG height=9 src="${pageContext.servletContext.contextPath }/images/main_47.gif" width=9>
						</TD>
						<TD>
							<A class=menuChild href="${pageContext.servletContext.contextPath }${b.resourceUrl}" target="reghit">${b.resourceName}</A>
						</TD>
					</TR>
				</c:forEach>
				</TABLE>
				</c:forEach> 
			</TD>
			<TD width=1 bgColor=#d1e6f7></TD>
		</TR>
        </table></td>
      </tr>
      <tr>       
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>